package com.cjyd.hrjb.service;

import com.cjyd.hrjb.model.dto.TokenDto;
import com.cjyd.hrjb.model.entity.AccessToken;

import java.util.List;

/**
 * Created fei wo by 2020/4/5
 */
public interface AccessTokenService {

    /**
     * 获取Access Token
     * @return {@link TokenDto
     */
    TokenDto get();

    /**
     * 获取Token
     * @return {@link List<AccessToken>}
     */
    List<AccessToken> list();

    /**
     * 定时检查token有效性
     */
    void cornSyncToken();
}
